package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 用户角色关联
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_sys_user_role")
public class SysUserRole extends Model<SysUserRole> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;
    /**
     * 外键spd_sys_user.id
     */

	@TableField("sys_user_id")
	private Long sysUserId;
    /**
     * 外键spd_sys_role.id
     */

	@TableField("sys_role_id")
	private Long sysRoleId;


	public Long getId() {
		return id;
	}

	public SysUserRole setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getSysUserId() {
		return sysUserId;
	}

	public SysUserRole setSysUserId(Long sysUserId) {
		this.sysUserId = sysUserId;
		return this;
	}

	public Long getSysRoleId() {
		return sysRoleId;
	}

	public SysUserRole setSysRoleId(Long sysRoleId) {
		this.sysRoleId = sysRoleId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}